import { Menu, MenuProps } from "./Menu"
import { MenuItem, MenuItemProps } from "./MenuItem"
import { SubMenu, SubMenuProps } from "./SubMenu"

export * from "./Menu"

export * from "./MenuItem"

export * from "./SubMenu"


export type IMenuComponent = React.FC<MenuProps> & {
    Item: React.FC<MenuItemProps>
    SubMenu: React.FC<SubMenuProps>
}

const TransMenu = Menu as IMenuComponent

TransMenu.Item = MenuItem
TransMenu.SubMenu = SubMenu

export default TransMenu